home *** CD-ROM | disk | FTP | other *** search
- function ReturnJustFileName( const s : string ) : string;
- var
- sExtension : string;
- sFullFileName : string;
- begin
- sFullFileName := ExtractFileName(s);
- sExtension := ExtractFileExt(sFullFileName);
- Result := Copy(sFullFileName, 1,
- Length(sFullFileName)-Length(sExtension) );
- end;
- function ReplaceFileExt( const sFullFileName : string;
- const NewExt : string ):string;
- var sFileExt : string;
- begin
- sFileExt := ExtractFileExt(sFullFileName);
- Result := Copy(sFullFileName, 1, Length(sFullFileName) -
- Length(sFileExt) ) + æ.Æ + NewExt;
- end;
-